package com.ruoyi.manager.service;




import com.ruoyi.manager.domain.AppVersion;

import java.util.List;

/**
 * versionService接口
 *
 * @author ruoyi
 * @date 2021-05-07
 */
public interface IAppVersionService
{
    /**
     * 查询version
     *
     * @param id versionID
     * @return version
     */
    public AppVersion selectAppVersionById(Long id);

    /**
     * 查询version列表
     *
     * @param appVersion version
     * @return version集合
     */
    public List<AppVersion> selectAppVersionList(AppVersion appVersion);

    /**
     * 新增version
     *
     * @param appVersion version
     * @return 结果
     */
    public int insertAppVersion(AppVersion appVersion);

    /**
     * 修改version
     *
     * @param appVersion version
     * @return 结果
     */
    public int updateAppVersion(AppVersion appVersion);

    /**
     * 批量删除version
     *
     * @param ids 需要删除的versionID
     * @return 结果
     */
    public int deleteAppVersionByIds(Long[] ids);

    /**
     * 删除version信息
     *
     * @param id versionID
     * @return 结果
     */
    public int deleteAppVersionById(Long id);

    /**
     * 检查版本
     * @param version 返回最新版本
     * @return
     */
    public AppVersion checkVersion(String version);
}
